package com.xuecx.user.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:xuecx
 * @CreateDate: 2019/7/27.
 * @QQ:1276162287
 * @Discription:
 */
@RestController
@RequestMapping("user")
public class UserController {
    @Value("${server.port}")
    private  int port;
    @RequestMapping(value = "getUserName/{name}",method = RequestMethod.GET)
    public String getUserName(@PathVariable String name) {
        return name+port;
    }
}
